package com.indusfo.spc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.indusfo.spc.common.pojo.BasePojo;

import java.util.Date;

public class RepairWork extends BasePojo {
    // 维修作业ID
    private Integer repairWorkId;
    // 维修作业单号
    private String repairWorkNo;
    // 设备ID
    private Integer deviceId;
    // 制单人ID
    private Integer userId;
    // 维修人ID
    private Integer repairUserId;
    // 审核状态ID ( 1未审核  2已审核  3已完结)
    private Integer auditState;
    // 维修原因
    private String repairCause;
    // 维修对策
    private String repairReply;
    // 开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String startDate;
    // 结束时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endDate;
    // 工作时长
    private Double workHour;
    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    // 修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;
    // 备注
    private String remark;
    // 数据状态
    private Integer dataState;



    // 审核状态翻译
    private String auditStateName;
    // 设备编号
    private String deviceCode;
    // 设备名称
    private String deviceName;
    // 创建人翻译
    private String userName;
    // 维修人翻译
    private String repairUserName;

    public String getAuditStateName() {
        return auditStateName;
    }

    public void setAuditStateName(String auditStateName) {
        this.auditStateName = auditStateName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRepairUserName() {
        return repairUserName;
    }

    public void setRepairUserName(String repairUserName) {
        this.repairUserName = repairUserName;
    }

    public Integer getRepairWorkId() {
        return repairWorkId;
    }

    public void setRepairWorkId(Integer repairWorkId) {
        this.repairWorkId = repairWorkId;
    }

    public String getRepairWorkNo() {
        return repairWorkNo;
    }

    public void setRepairWorkNo(String repairWorkNo) {
        this.repairWorkNo = repairWorkNo == null ? null : repairWorkNo.trim().replace(" ","");
    }

    public Integer getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Integer deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getRepairUserId() {
        return repairUserId;
    }

    public void setRepairUserId(Integer repairUserId) {
        this.repairUserId = repairUserId;
    }

    public Integer getAuditState() {
        return auditState;
    }

    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    public String getRepairCause() {
        return repairCause;
    }

    public void setRepairCause(String repairCause) {
        this.repairCause = repairCause == null ? null : repairCause.trim().replace(" ","");
    }

    public String getRepairReply() {
        return repairReply;
    }

    public void setRepairReply(String repairReply) {
        this.repairReply = repairReply == null ? null : repairReply.trim();
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public Double getWorkHour() {
        return workHour;
    }

    public void setWorkHour(Double workHour) {
        this.workHour = workHour;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim().replace(" ","");
    }

    public Integer getDataState() {
        return dataState;
    }

    public void setDataState(Integer dataState) {
        this.dataState = dataState;
    }
}